import sys

from PySide6.QtGui import Qt
# 之后采用qfluentwidgets
from PySide6.QtWidgets import QApplication, QMainWindow
from main_ui import Ui_MainWindow
class MainWindow(QMainWindow,Ui_MainWindow):
    def __init__(self):
        super(MainWindow,self).__init__()
        self.setupUi(self)

        self.pushButton.clicked.connect(self.set_Font_color)
        self.pushButton_2.clicked.connect(lambda :self.label.setText("1111"))

    def set_Font_color(self):
        self.label.setTextColor(Qt.red)
if __name__ == '__main__':
    app = QApplication(sys.argv)
    main = MainWindow()
    main.show()
    sys.exit(app.exec())